﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UserForm.aspx.cs"
Inherits="schedulelist.UserForm" MasterPageFile="~/Site.Master"%>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder5" runat="server">
    <table align="center">
<tr align="center">
<td>
<table>
        <tr align="center">
            <td>
                    <table id="t1">
                            <tr>
                                    <td>
            
                                        <asp:Button ID="Button1" runat="server"  OnClick="ibInsert_Click"  
                                        Text="Add user"  Height="20" Width="100"/>
                                    </td></tr><tr>
                                    <td>
                                            <asp:Button ID="Button9" runat="server"  OnClick="ShowAll"  
                                            Text="Show all users" Height="20" Width="100"/>
                                    </td></tr><tr>
                                    <td>
                                            <asp:Button ID="Button4" runat="server"  Visible = "true" OnClick="QAD"
                                            Text="Quick adding"  Height="20" Width="100"/>
                                    </td>                                
                            </tr>
                    </table>
                </td>
            <td>
                    <table id="Table1" align="center">
                                    <tr>
                                    
                                    <td style="width: 270px">
                                        <asp:DropDownList ID="DropDownList1" runat="server" Height="23px" 
                                                 Visible="true" 
                                                Width="100px"/></td><td>
                                            <asp:DropDownList ID="DropDownList2" runat="server" Height="23px" 
                                                 Visible="true" 
                                                Width="100px"/>                                                           
                                    </td>
                                    </tr>      
                                    <tr>
                                    <td style="width: 270px">
                                        <asp:Button ID="Button8"  runat="server"  OnClick="SelectByRole"  
                                             Text="Select By Role"  Height="24px"   Width="103px"/></td><td>
                                            <asp:Button ID="Button12" runat="server" Height="24px" OnClick="SelectByDep" 
                                                Text="Select By Dep" Width="104px" />
                                    </td>
                                    </tr>
                        </table>
            </td>
            <td style="width: 160px">
                    <asp:Label ID="Label4" runat="server" Text="Users"
                    Font-Size="20pt" ForeColor="#000000" Font-Bold="True"/>
            </td>
                        
            <td>
                        <table align="center">
                                <tr>
                                    <td style="width: 270px">
                                        <asp:DropDownList ID="DropDownList33" runat="server" Visible="true" Width="115">
                                        </asp:DropDownList>
                                        
                                    </td>
                                     </tr>
                                     
                                     <tr>
                                     <td style="width: 270px">
                                        <asp:Button ID="Button10" runat="server" OnClick="Stat" Visible="true" 
                                         Text="Get stats for"  Height="24px" Width="120px"/>
                                        
                                     </td>
                                     </tr>
                                     
                                </table>
            </td>
        </tr>
    </table>
</td>
</tr>
<tr>
<td>
<asp:GridView ID="GridView1" runat="server" ForeColor="#000000" BorderWidth="2px" 
AutoGenerateColumns="false" Visible="true" BorderColor="#C0C0C0"
ShowFooter="false" ShowHeader="true"
AllowPaging="true" PageSize="20"
onrowdeleting="GridView1_RowDeleting" Font-Size="12pt"
onrowediting="GridView1_RowEditing"
onpageindexchanging="GridView1_PageIndexChanging"
HorizontalAlign="Center" RowStyle-HorizontalAlign="Center">
<Columns>
<asp:TemplateField  HeaderText="Name" HeaderStyle-Font-Italic="true" HeaderStyle-Font-Underline="true"  HeaderStyle-Font-Bold="false" ItemStyle-Width="100" ItemStyle-BackColor="#CCCCCC" ItemStyle-BorderColor="#C0C0C0"
HeaderStyle-BackColor="#CCCCCC" HeaderStyle-BorderColor="#C0C0C0">
<ItemTemplate>
<asp:Label id="myLabel2" runat="server" Font-Size="12pt"
Text='<%# Bind("name")%>'  Font-Names="Segoe Print" />
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox ID="myTextBox2" runat="server" Width="70"
Text='<%# Bind("name") %>'/>
</EditItemTemplate>
<FooterTemplate>
<asp:TextBox ID="myFooterTextBox2" runat="server"
Width="70" Text='<%# Bind("name") %>' />
</FooterTemplate>

</asp:TemplateField>
<asp:TemplateField HeaderText="Login" ItemStyle-Width="100" HeaderStyle-Font-Underline="true" HeaderStyle-Font-Italic="true" HeaderStyle-Font-Bold="false" ItemStyle-BackColor="#CCCCCC" ItemStyle-BorderColor="#C0C0C0"
HeaderStyle-BackColor="#CCCCCC" HeaderStyle-BorderColor="#C0C0C0">
<ItemTemplate>
<asp:Label id="myLabel3" runat="server"  Font-Names="Segoe Print" Font-Size="12pt"
Text='<%# Bind("login")%>' />
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox ID="myTextBox3" runat="server" Width="70"
Text='<%# Bind("login") %>'/>
</EditItemTemplate>
<FooterTemplate>
<asp:TextBox ID="myFooterTextBox3" runat="server"
Width="70" Text='<%# Bind("login") %>' />
</FooterTemplate>

</asp:TemplateField>
<asp:TemplateField HeaderText="Password" HeaderStyle-Font-Underline="true" HeaderStyle-Font-Italic="true" HeaderStyle-Font-Bold="false"  ItemStyle-Width="100" ItemStyle-BackColor="#CCCCCC" ItemStyle-BorderColor="#C0C0C0"
HeaderStyle-BackColor="#CCCCCC" HeaderStyle-BorderColor="#C0C0C0">
<ItemTemplate>
<asp:Label id="myLabel4" runat="server"  Font-Names="Segoe Print" Font-Size="12pt"
Text='<%# Bind("pass")%>' />
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox ID="myTextBox4" runat="server" Width="70"
Text='<%# Bind("pass") %>'/>
</EditItemTemplate>
<FooterTemplate>
<asp:TextBox ID="myFooterTextBox4" runat="server"
Width="70" Text='<%# Bind("pass") %>' />
</FooterTemplate>

</asp:TemplateField>
<asp:TemplateField HeaderText="Email" HeaderStyle-Font-Underline="true" HeaderStyle-Font-Italic="true" HeaderStyle-Font-Bold="false" ItemStyle-Width="100" ItemStyle-BackColor="#CCCCCC" ItemStyle-BorderColor="#C0C0C0"
HeaderStyle-BackColor="#CCCCCC" HeaderStyle-BorderColor="#C0C0C0">
<ItemTemplate>
<asp:Label id="myLabel5" runat="server"   Font-Names="Segoe Print" Font-Size="12pt"
Text='<%# Bind("email")%>' />
</ItemTemplate>
<EditItemTemplate>
<asp:TextBox ID="myTextBox5" runat="server" Width="70"
Text='<%# Bind("email") %>'/>
</EditItemTemplate>
<FooterTemplate>
<asp:TextBox ID="myFooterTextBox5" runat="server"
Width="70" Text='<%# Bind("email") %>' />
</FooterTemplate>

</asp:TemplateField>
<asp:TemplateField HeaderText="Sex" HeaderStyle-Font-Underline="true" HeaderStyle-Font-Italic="true" HeaderStyle-Font-Bold="false" ItemStyle-Width="100" ItemStyle-BackColor="#CCCCCC" ItemStyle-BorderColor="#C0C0C0"
HeaderStyle-BackColor="#CCCCCC" HeaderStyle-BorderColor="#C0C0C0">
<ItemTemplate>
<asp:Label id="myLabel6" runat="server"   Font-Names="Segoe Print" Font-Size="12pt"
Text='<%# Bind("sex")%>' />
</ItemTemplate>
<EditItemTemplate>
<asp:DropDownList ID="DropDownList3"   runat="server"  Width="70">
                                <asp:ListItem Selected="m" Value="m"> m </asp:ListItem>
                                <asp:ListItem Value="f"> f </asp:ListItem>
                            </asp:DropDownList>
</EditItemTemplate>
<FooterTemplate>
<asp:DropDownList ID="DropDownList4" runat="server"  Width="70">
                                <asp:ListItem Selected="m" Value="m"> m </asp:ListItem>
                                <asp:ListItem Value="f"> f </asp:ListItem>
                            </asp:DropDownList>
</FooterTemplate>

</asp:TemplateField>
<asp:TemplateField HeaderText="Role" HeaderStyle-Font-Underline="true" HeaderStyle-Font-Italic="true" HeaderStyle-Font-Bold="false"  ItemStyle-Width="100" ItemStyle-BackColor="#CCCCCC" ItemStyle-BorderColor="#C0C0C0"
HeaderStyle-BackColor="#CCCCCC" HeaderStyle-BorderColor="#C0C0C0">
<ItemTemplate>
<asp:Label id="myLabel7" runat="server"   Font-Names="Segoe Print" Font-Size="12pt"
Text='<%# Bind("Role")%>' />
<asp:DropDownList ID="DropDownList5" Visible="false" runat="server"  Width="70">
                            </asp:DropDownList>
</ItemTemplate>
<FooterTemplate>
<asp:DropDownList ID="DropDownList6" runat="server"  Width="70">
                            </asp:DropDownList>
</FooterTemplate>

</asp:TemplateField>
<asp:TemplateField HeaderText="Department" HeaderStyle-Font-Underline="true" HeaderStyle-Font-Italic="true" HeaderStyle-Font-Bold="false" ItemStyle-Width="100" ItemStyle-BackColor="#CCCCCC" ItemStyle-BorderColor="#C0C0C0"
HeaderStyle-BackColor="#CCCCCC" HeaderStyle-BorderColor="#C0C0C0">
<ItemTemplate>
<asp:Label id="myLabel8" runat="server"   Font-Names="Segoe Print" Font-Size="12pt"
Text='<%# Bind("Dep")%>' />
<asp:DropDownList ID="DropDownList7" Visible="false" runat="server"  Width="70">
                            </asp:DropDownList>
</ItemTemplate>
<FooterTemplate>
<asp:DropDownList ID="DropDownList8" runat="server"  Width="70">
                            </asp:DropDownList>
</FooterTemplate>
</asp:TemplateField>
<asp:TemplateField  Visible="True" HeaderStyle-Font-Underline="true" HeaderStyle-Font-Italic="true" HeaderStyle-Font-Bold="false" HeaderText="Actions" ItemStyle-BackColor="#CCCCCC" ItemStyle-BorderColor="#C0C0C0"
HeaderStyle-BackColor="#CCCCCC" HeaderStyle-BorderColor="#C0C0C0" >
<ItemTemplate>
<table><tr><td>
<asp:Button ID="ibDelete" runat="server" CommandName="Delete" 
    Text="Del"  Height="20" Width="30"/></td>
    <td><asp:Button ID="Button7" runat="server"   CommandName="Edit" Visible="true" 
    Text="Edit"  Height="20" Width="40"/></td>
    <td><asp:Button ID="Button2" runat="server" OnClick="Updating" Visible="false" 
    Text="Edit now"  Height="20" Width="55"/></td>
    <td><asp:Button ID="Button3" runat="server"  Visible = "false" OnClick="Undo"
    Text="Cancel"  Height="20" Width="45"/></td>
    <td><asp:Button ID="Button6" runat="server" OnClick="AED" Visible="false" 
    Text="Advanced item edit"  Height="20" Width="100"/></td>
    </tr>
    </table>
</ItemTemplate>
<FooterTemplate >
<table><tr><td>
<asp:Button ID="Button5" runat="server"  OnClick="QuickAd"  
    Text="Add"  Height="20" Width="50"/></td>
    <td><asp:Button ID="Button8" runat="server"  OnClick="Undo"
    Text="Cancel"  Height="20" Width="65"/></td>
    </tr>
    </table>
</FooterTemplate>
</asp:TemplateField>
</Columns>
<PagerStyle HorizontalAlign ="Center" />

<RowStyle HorizontalAlign="Center" BorderColor="Silver"></RowStyle>
</asp:GridView>
</td>
</tr>

</table>
</asp:Content>

